
*{
    margin: 0;
    padding: 0;
}

.nav{
    height: 56px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    align-items: center;
}
.nav a{
    text-decoration: none;
    color: #000;
}
.nav .nav-title{
    font-size: 22px;
}   
.nav .nav-title small{
    color: #666;
    font-weight: normal;
    font-size: 14px;
}
.nav-links a{
    font-size: 14px;
    color: #000;
    padding-left: 10px;
}
.nav-links a:hover{
    color: #666;
}

footer{
    height: 150px;
    text-align: center;
    line-height: 150px;
    color: #ccc;
}

/* 登录组件 */
.login{
    width: 260px;
    padding: 20px;
    margin: 100px auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login input, .login label{
    display: block;   
    width: 100%;
}
.login label{
    margin-bottom: 5px;
}
.login input {
    margin-bottom: 15px;
    height: 32px;
    padding: 0;
    text-indent: 10px;
}
.login input[type="submit"]{
    margin-bottom: 0px;
    text-indent: 0px;
    background: #00AB00;
    color: #fff;
    border-radius: 5px;
    border: none;
}



.err{
    color: red;
    padding: 5px;
}



.article-item{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 10px;
    padding-top: 40px;
}
.article-item-header {
    padding-bottom: 10px;
}
.article-item-header a{
    color: #1890ff;
}
.article-item-header a:hover{
    color: #000;
    text-decoration:underline;
}
.article-item .article-item-header h3{
    height: 32px;
    display: inline-block;
}
.article-item .article-item-header .article-item-edit{
    float: right;
    display: inline-block;
    height: 32px;
    border: 1px solid #1890ff;
    border-radius: 5px;
    cursor: pointer;
}
.article-item-edit a{
    display: block;
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    position: relative;
    float: left;
    text-decoration: none !important;
    cursor: pointer;
}
.article-item-edit a:hover{
    color: #1890ff;
}
.article-item-edit a:active{
    opacity: .5;
}
.article-item-edit a:nth-child(2) {
    border-left: 1px solid #1890ff;
}

.article-info{
    max-width: 960px;
    margin: 0 auto;
    padding: 0 10px;
    padding-top: 40px;
}
.article-info_title {
    text-align: center;
}

.article-info_details{
    text-align: center;
    padding: 10px;
    color: #666;
}
.article-info_details span{
    padding: 0 5px;
}


/* 编辑文章 */
.article-edit{
    width: 960px;
    padding: 0 10px;
    margin: 20px auto;
}
.article-edit_btns li{
    list-style: none;
}


.article-edit_btns li{
    float: left;
}
.article-edit_btns::after{
    content: '';
    display: block;
    clear: both;
}
.article-edit_btns button{
    font-size: 16px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.article-edit_btns button.del{
    color: red;
}
.article-edit_title, .article-edit_category{
    margin: 10px 0;
}
.article-edit_title input{
    width: 100%;
    font-size: 24px;
    padding: 5px;
}
.article-edit_category input{
    width: 100%;
    font-size: 18px;
    padding: 5px;
}



.tag{
    width: 960px;
    margin: 20px auto;
}
/* 清除浮动 */
.tag::after{
    content: '';
    display: block;
    clear: both;
}
.tag-item{
    float: left;
    list-style: none;
}
.tag-item a{
    font-size: 18px;
    font-weight: normal;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 10px;
    color: #000;
    text-decoration: none;
}

.tag-item_active a{
    color: #1890ff;
}